#ifndef ZHUTEST_H
#define ZHUTEST_H
#include "zhutest_global.h"
#include <QObject>
#include <QTcpSocket>
#include <QJsonObject>
#include <QString>
#include <QJsonArray>
#include <QJsonValue>

namespace Ui {
class zhuTest;
}
class ZHUTESTSHARED_EXPORT zhuTest:public QObject
{
Q_OBJECT
public:
    explicit zhuTest(QObject *parent = nullptr);

    Ui::zhuTest *ui;


public:

    bool isconnetion; //判断是否连接到服务器的标志位
    QTcpSocket *TCP_sendMesSocket; //发送消息套接字

    void getTodayTemperature();
//    void getDetialList();
//    void getchartData();

signals:

    void sendTodayTemperature(QJsonObject obj);
//    void sendDetialList(QJsonArray obj);
//    void senchartData(QJsonArray obj);
//    void sendconnected(QString obj);
public slots:
    void slot_connected(); //处理成功连接到服务器的槽
   // void slot_sendmessage(); //发送消息到服务器的槽
   void slot_recvmessage(); //接收来自服务器的消息的槽
//   void slot_recvmessages(); //接收来自服务器的消息的槽
//   void slot_recvmessages1(); //接收来自服务器的消息的槽

   // void slot_disconnect(); //取消与服务器连接的槽



};

#endif // zHUTEST_H
